<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="/bootstrap/css/bootstrap.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/bootstrap/js/bootstrap.js"></script>
<title>下拉菜单</title>
</head>
<body>
	<div class="container">
		<div class="dropdown">
			<button type="button" class="btn btn-default btn-md dropdown-toggle" data-toggle="dropdown" id="my_menu">
				DROPDOWN
				<span class="caret"></span>
			</button>
			
			<ul class="dropdown-menu  dropdown-menu-left" role="menu" aria-labelledby="my_menu">
				<li role="presentation"><a role="menuitem" tabindex="-1" href="/ex/glyphicon.jsp">a</a></li>
				<li role="presentation" class="divider"></li>
				<li role="presentation" class="disabled"><a role="menuitem" tabindex="-1" href="/ex/demo.jsp">b</a></li>
				<li role="presentation" class="divider"></li>
				<li role="presentation"><a role="menuitem" tabindex="-1" href="#">c</a></li>
			</ul>
		</div>
		
		<h3>为.dropdown-menu添加.dropdown-menu-right类可以让菜单右对齐</h3>
		<h3>为.dropdown-menu添加.dropdown-menu-left类左对齐</h3>
	</div>
</body>
</html>